const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // 用户名
  name: state => state.user.userInfo.username,
  // 头像数据
  avatar: state => state.user.userInfo.staffPhoto,
  userId: state => state.user.userInfo.userId
  // 有三个地方依赖了user，但是user模块咱们已经删除了，
  // 所以依赖了user模块的代码暂时注释掉即可
  // user的内容我们后续自己实现

  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
}
export default getters
